from fastapi import APIRouter


def init_router():
    router = APIRouter()
    add_router(router)
    return router


def add_router(router: APIRouter):
    from api.v1.adminapi.attribute.attribute import router as attribute_router
    from api.v1.adminapi.language.language import router as language_router
    from api.v1.adminapi.currency.currency import router as currency_router

    router.include_router(attribute_router, prefix="/v1")
    router.include_router(language_router, prefix="/v1")
    router.include_router(currency_router, prefix="/v1")
